connect callback on sync complete