Add event listener for changed directions