get filter and sorting working