refactored data_dict; implemented json view