added favorites feature with localStorage