Added a global page and fixed routing