adding pagination and sorting, also enable users