detachEvent method is added