updated hex identification to use event.target