added support for IE 7 & 8