minor changes on pagination