sidebar: refactor notifications collection