Bugfix: fail on try to show file properties when no files were selected, code refactor