modified the logic for changing the favorite movie status