add dialog when app is foreground and notification received