Restructured files so that app is declared in the view. Still working with routing issues.