template functions refined through hmvc