set listeners to array