Template hooks for plugin