Adding new changes so that the display will not be emtpy if the text entry is empty.