Fix bug & learned onclick can be unpredictable and it’s better to use addEventListner