handle selecting files for setting title, handle drag and drop additional files, refactor alert code a bit