Added an event ui_event which is emitted when the user clicks on a pad or a part