[FIX]Remove title bar by config instead of code (and avoid blinking)