changed template function style to link rel