Pass widget instance into hooks