trying to get modals to close