cleanup and reduce duplication
style the notification delete link on messages