added view mode based classes and template suggestions