Write some doc block in create event method
Add alert message and remove some unused codes