handling closed_content issues with view api

This is not really ready to merge; just wanted to put up a PR for conversation purposes.
This has probably been merged already, but I really think the comment location after the condition and code is confusing.  Maybe just move the code after the when (turn ; into newline) and join comments onto either the conditional or the code.  (I think I prefer the former)