Added a way to execute a custom function when a user clicks on a item
Changed icon class name
Now, selected items are expanded