Small change to check if it triggers a new page