add new file function in favorite.