Added event on logic
Added event on logic