Added handling of events fired by elements added dynamically