only apply ajax filter if it's a ajax request