processing of adding and removing from favorites