added favoriting functionality and browsing favorites functionality