refactored the View class to leverage the new SerializationContext