set filter for ajax request