Refactored page title code.
Finish layout and routes.