fix bug with close button on modals