Adds pages controller for index page