Fix route changes in UI