removes multiple elements with same id issue