I did the logic the wrong way.. there is no isDefaultPage method available.. so I did the logic another way