add some function about alert