seperate html frame into layout.tpl