changed getIndexParams() method so it acts slightly diffrent for paginator