wait for modals