Clear text when swiching states, removed old class