refactor ie version check