fixed logical error in notification view