Tried to bring the GUI into the main app, but app crashes, need to fix