added view only option by over-riding getViewContextClass