Change the old version of _resizeWidget
fix many errors
fix errors about the function howFocus