dialog.cpp: removed some TODOs and added some comments.