Fetch data when clicking on a node