added controller for pages and configured routes