bugfixes, save the favorite items in the localStorage