Created function to get the index of the clicked function or null if you click outside the wheel