Added an id parameter to the widget mouse event callback functions.