[scaffold] add pagination for index page, default to 10