implemented displaying data in list form