correction of variables name and functions name in view/Main.php