addEventListener changed to on