setting attributed strings in the ui