newer version of viewFrames