Some menu logic in loop