updating to use built in dialog