made modal menu work faster