Fixed Issue #1 and problem with adding empty file when dialog was cancelled

File choosers are now working properly