Persist checkbox states in local storage