added filters and sort to index controller