cleaning up the gui