Add change perPage functionality