Update hook method to support IE7-8