Create a click action for list
Change from element directive to attribute directive