refactors notification adapter