restructuring output page