fix return alert when created successful