render in templates now calls renderMeta and renderHeader into seperate places