fix dialog closing on misclick
multiple files in preview tab (basic)
fix debug code
remove code comment
fix buildSettings()