fix the issue and make it work with chrome extersion version 2.0