updated camwidget and mainlayout