removed more application logic from static pages layout