changed the filtering so that it is now done with AJAX