implemented synchronize local changes to server