keeping state on the DOM