finally fixed the template functions display shit