Fix up rootwidget and page container

We need to properly link the page container to the rootwidget.

Fixes #223