Commiting changes for diagram