better refreshing logic (prevents strange flickers)
this should do with tags