remove button appended to DOM correctly