redoing responsive styles with refactored templates