rewrite HomePage.class -> method isOnThisPage