I would like to associate some entity in a drawing with a sort of command (i.e. an object with some specific fields: string name, bool[] activated, etc.). I would like to user to click on an entity and then choose a command to associate with it. I want to easily browse all entities that have an associated command and I want this information to remain when the fil is saved and closed. How do you suggest I do this?