renamed state selector to "page"