1. Add template mechanism in client-side.
2. Revert some code.