added crud functionalty and pagination