fixed editing problem, spans were being selected and event.target.id was being called on span an id-less span