condensing files. removed viewCourses and moved file into the view.js route