add conditional layout for contact and terms pages