Properly update badge number after changing identity, also add it after height updates since tasks can be finished.
fix incorrect reference.
Update badge items in  more situations.
make the popup update on height updates.
Fix mismatched names for send notifications.
Remove no longer used type parameter.