created notifications helper method and logic