Fixed functional for add item to favorite or delete item from favorites