Simplify RoutesManager events by using states.
Synchronize main panel with the state of RoutesManager.
Update main panel only when the state of current RoutesManager is changed.