add hook template for add-ons