menu logic and button