Trying to make the "close-circle" button work. this function will create the button multiple times if there are multiple items, each of them is created with a specific