syncing on button click