update server side with feedback from client
update js to take into account server side changes