split cpp header and split addwidget addlayout