udpate dialog and select