added favorites api method