Added support for viewing files when double-clicking on them