notification service to handle delete task and edit task