get exit button working