modals aren't closed anymore when the background overlay is clicked