prevented modals from closing when clicked on background