Added auto select of new file when document delete.