get return value of modaldialog