Refactoring NestedPageComponent

- making it abstract
- adding #isDisplayed