only show exit button in first page