Use a dockwidget instead of custom splitter
Fix some issues with engine init/close