dealing pending notifications