refactored delete notification and user profile task