update data json and index content