only sets cookie if changed or not there