Update 'Add to favorites' function