adding error handling to ajax calls
fixing files.navigate to pass through non-tree paths