neater html in notifications
removed redundant code