Fix bugs in MainWindow
Make tab from CanvasView window (Intermediate version)