Having trouble selecting condition to jump to page