new diagram and layout