got the array and on events working