Add pref icon to boxes, use sync version to write to file