send initial data when opening and fix badge