renaming vars in view.php