added check for modal to disappear in _change_lang_promise