make it so that the app dynamically reloads when a new key is generated or find a different way to handle this kind of stuff