replace HorizontalLayout with RowLayout