generate list content and access list  when a list is clicked