My app has 2 states. It includes controlBarContent which are hidden in the 2nd state. I have a menuBar on the controlBar that is generated dynamically from an external xml file, which includes icons. These icons are lost when state changes from 1 to 2 and back to 1. The icons are embedded as classes within the app. Any ideas how to prevent this?