Add send function in queryAPI and adapted view