refact smartNotifacation, remove global variable
remove unused files