add component diagram