Removed unnecessary code from GUI