fixed getTextContents argument in UI