added static pages, templates etc
refactoring