Updated the Controller

Gave it the connection to the main ApplicationController
Corrected the folder name in the app/views folder