Finish code on ajax filtering