text and html functionality added