update filtering method to only happen on render rather than storing in db