getting the name and time to be displayed