do not open any directory when user click cancel button
remove duplicate files when add directory