Got attributed text to work finally