Added exit button, exit button logic.