Fixed the hook (hopefully) and made the parent of widgets be set by the widget class' constructor instead of separately by widgets