adjust  drawSyncStatus function