updated code for IE11 as popup was not shown.