How to select certain pages based on conditions