Add writeList in onAction.