Using embedded Kibana dashboard iframe in html to replicate search functionality in my application as in kibana

I have a search box and date picker.
If I enter some value in search box and select time from date picker, the dashboard gets refreshed for time selected but not for the query
Though the url shows search value in query:(query_string:(analyze_wildcard:!t,query:'xyz')

What changes do I need to make so that the dashboard gets refreshed for the query string also?

http://localhost:5601/#/dashboard/abc?embed&_g=(refreshInterval:(display:Off,pause:!f,section:0,value:0),time:(from:now%2Fy,mode:quick,to:now%2Fy))&_a=(filters:!(),panels:!((col:1,id:BWRuntime-count,row:1,size_x:2,size_y:2,type:visualization),(col:10,id:BWRUNTIME-status,row:1,size_x:3,size_y:2,type:visualization),(col:1,id:BWRUNTIME-TimeSeries-with-Start-Date,row:6,size_x:12,size_y:3,type:visualization),(col:9,id:BW-Runtime-STE-versions,row:3,size_x:2,size_y:3,type:visualization),(col:4,id:BWRuntime-Domains,row:3,size_x:5,size_y:3,type:visualization),(col:11,id:BWRuntime-Reasons,row:3,size_x:2,size_y:3,type:visualization),(col:1,id:BWRuntime-Host-Names,row:3,size_x:3,size_y:3,type:visualization),(col:1,columns:!(date,domain,environment,host,lastupdate,reason,service,sno,status,stever),id:BWRUNTIME-information,row:9,size_x:12,size_y:3,sort:!(date,desc),type:search),(col:3,id:BWRUNTIME-Environments-with-STOPPED-status,row:1,size_x:4,size_y:2,type:visualization),(col:7,id:BWRUNTIME-Environments-with-DUPLICATE-status,row:1,size_x:3,size_y:2,type:visualization)),query:(query_string:(analyze_wildcard:!t,query:'xyz')),title:'abc')