remove dependencies on layout.tpl