add event for rule approval and fix bug