finish layout and static_pages