fixed a bug with preselecting existing selection, removed limitation on file types