Added tmpl.head/foot files to templates
Fixed ControlPanel