Added clickable and hover function to the figure