implemented the preliminary ajax filtering