Refactored a bunch of popup stuff, got a basic prompt box and text input working(ish)