added in-view version

I was in a bit of a functional mood when I wrote this