added views in json format, added edit view