raising event for deleting pending as well + template creation fix

SUP-2132 #time 15m