code working including update. Posting on server