implement favorite functionality on homepage