restore ui after menu item click