Added in css display none for the pinlist, and click listeners to show the list and close it