proper implementation of View::viewFile.