update logic in controllers and services - add notification types.
update pages.