added two different ways of displaying data on UI.