adapt template layout.phtml