added hiding of GUI elements