wrote function that returns only active filters and integrated it to the
controller