cleaned up the gui