begin popup window
(probably have to rewrite most of the main stuff ><)