use module
change pagination
fix bug of json output