change alert after added task;add init function