Removed duplicate call in results index
Extracted grouping,sorting and filtering into AppController