refactor notification use to use a helper