worked on router to load contoller and switch between pages