add dynamic remove function call to elements