added global view variable support