Updating the layout elements