changes for  printing out the sentences
ui changes