fixed main.js also added update for all favorites