added actual filtering
finished filtering + html replacement