show page refactor