updated addNotification to return the message widget