Inspector updates itself when a diagram element is selected