wrap the widgets correctly