onSync is called when monitor sync complete