Synchronize selection between diagram and model