working searches on orders and products using ajax