Updating the layout and the pastes