Updated to add the element as a data property on the calling the hooks
onFinish and onItemSelect.