Move clear filters code to controller