templates and static pages working