Hooked up apply filter functionality