pages also depends on search, adding it as required