Cleaned up grouping,sorting,filtering,searching method in ApplicationController