praveen's changes of dynamic popup