add pagination for user, add json output response for ajax support