first part of adding the favorite feature