finally for active filtering to work
search function fully done
solved merge conflicts