Adds routing for pages