add main widget and dockable widget