ensured notifications are only rendered if necessary