app goes to correct page on load. refactored router to be main app variable.