added pages and fixed routing