implemented Download dialog, and some other dialogs