refactoring & a page is displayed