refactoring of notifications fragment