updated to support IE, enable correct display of scopes