add alert when create class