fixed some bugs related to the notifications display