Completed add and remove favorite functionality