Update sync from UI
Another cleanup js