this will get the general filtering working, the recommend still not implemneted, and some bug and style issues to solve yet