Split text and widgetrow creation to new functions