The following code works fine on button click, however it is not persisting the current state on page load. So what happens when I refresh , the values are resetting and not