Added logic to check the page everytime it gets loaded