fixed problems with closing newBookWindow