modals closing after question submission