Dynamically take input search params and output in alert dialog