implemented dialog listeners

OnClickListener to return entered value to host of the dialog