update json and rendering