[trivial] refactoring and add card-composer template.