Imp methods for enable/disable global hook