Update from depreciated style events
Merge pull request #212 from Tarangp/patch-1

Update from depreciated style events