improved the Notifier by taking into account the showOnly flag