exit button now works