Ui.buttonset on changing DIV

Ui.buttonset on changing DIV

I have a div that is a form.  I have hidden divs on the page that when the user hits the next or prev button changes the information displayed in the div (form).  I was trying to use ui.buttonset here but whenever the user access the different "page" in my form, Ui.buttonset breaks and is no longer clickable.

I was using $("#chartChanges").html($("#saveChart").html()); to change the content of the div and then  $("#chartChanges").buttonset(); when the page loaded.