emit event when user is synced and update code to use it