adding file-open dialog, excluding image and css files from consideration