figured out the dialog item return issue and implemented