improve the response of workspace change
refactoring
fix glitches of viewWnd