Replaced onclick, onmouseover with event listeneres