Adding display function