Switching actors in game deletes part of UI

Can you please show me an example? ive fiddled around and cant seem to get it correct