Detect back to main menu or not