Add an absolute reference ...

Add an absolute reference between the scene widget and the main window widget,
instead of calling scene.parent().parent()...parent()
Add tabs
Refactor