Deleted quitButton and updated functions