Handler of NewTask