use helper function to generate templates urls to avoid hardcoded urls