added check for still active and created web hook endpoint