docs and detach event