make pages format correctly