adding pagination, search & sorting