Custom function on page change option and get fieldset function