implemented records filtering on ui