better unbinding of event handler