fix: unregister live click events

When applying twice the formater the live events conflict. This prevent it by
removing it before creating the new one. This patch broke the capability of
applying the formater with collapse on two different objects in the same page.