routeChanged event & frame definition refactoring