Replaced all MessageBox with PopupWindow