new version of viewFrames