Added search, filtering and sorting functionality