Update dialog.cpp