adding in more template hooks