updating view variables