refactory notifcation div