removed warnings, added IE check