further template refinements for mobile and desktop