add event handler for remove button