change search filtering to be back end