removed dialogReturn -- old function