Fix the leaf click malfunction, move the onClickListener to MainActivity