Refactor show page