Refactoring show pages.