removing duplicate id and html errors