Support for global view context

Closes #4