Updated inview plugin

Fixes #270
Merge pull request #313 from adaptlearning/issue/#270

Issue/#270