[Changes] the logic of what part of the page is shown to be more robust.