added favoriting and favorites array