refine add item function in my favorite.