fix close button not working