Added the ability to distinguish the events from different widgets.