fixed issue #635

confirmation dialog box before deleting a notebook [issue #635]
please put spaces around `else` here