Refactoring show page