update excluded page logic