setVar setting $view instead of $value