Merge templates for standard and grid view