extracted all layout methods from nuiWidet, now need to think about what to push back into nuiwidget and what to adapt and change