improve details
support pagination
fix bug Undefined page number
fix bug in NewPostHandler