change endpage and write some doc