when back to main menu, clear the map and input field and detail page