Finished the display data function