Refactoring View and Json Data