generating controller, creating and populating index page and hooking up routes