various changes for custom views and template prefixes