fixed main window issue, which came due to popup fix
Merge pull request #1047 from RajmeetBal/popupFixed

fixed main window issue, which came due to popup fix