dirBrowser: try to build main view from element, if it fails fall back to built in template; added displayMode switch