adding new diagram