starting logic for menu