move script/style includes from template to view controller