close button shows and hides on the first page