updating the layout