Fix naming and add EventListener instead of onclick