Revert "var changed to newTitle etc"

This reverts commit c04e82aa5031a69d2737ac32cd0c27d7c24b90c1.
more changes with global var

redeclaring global var