finish static pages using layout