updated generatepopupnotification class