modify the layout according to the notes