Add callback when create taskDetail