routing of static pages

implement it properly and check everywhere
routing of static pages