unbind drag and resize handlers before destroying element