Update and reset some data after syncing successfully