added functionality to filter the grid before displaying the dashboard