fixed the fav function, return the favid when call the addfav