completed favorites functionality. refactoring necessary