fix navigation and move initializations from router to views