fix border drawing
Fix clear screen when exit
Add PopupWarning class