Using event.target on header click