Added the controller to the app.js file and repainted the index file