Add some transitions and fix a bug with deleting connections.