added update call when send is clicked