got exit button working