tabbing on pagination logic