Did you try to put the custom state on the page level?