Add eventhandler detachment