I'm not sure I'm proud of the hack to get the changing icon into the UI file without having to write code. But it works.