added empty query + sorts + pagination to search