improve model source code

allow developer to set custom number of item per page.
add querystring generator.
improve querystring generator
use new model's attribute data
use querystring generator to code easier.