updating the layout (part II)