updated: mouse click on exit closes