Made view() more robust to work around limitations in browseURL()