move dynamic menu closing event after other ajax events