Turn close button into HTML button