fixes #1164 - think this bug got introduced by refactoring of the views/dialogs. we now keep the newFileName inside a nested "rename" object which helps avoid losing track of the value across nested scopes in angular