Better alerts and toggle-button functionality on Trip Planner