I have a program where the text will change what is displayed depending on the state, the state can be \'loading\', \'updating\' etc. I was wondering if there was a way to do so