Notifications counter working on page reload