Fix for double click issue while launching popup.