added a recurisve traverse function to show the list link elements