registering the hook
register hook only if board active, add a template variable