Custom 'selected' event triggered in referencewidget