change webhook logic