Moving gui stuff into its own module