The removeEventListener will not work here because the functions are referring to an anonymous function:
removeEventListener
const startSelectNode = (stepIndex) =>