badge setting on notification load done at end of for loop