Fix handling control value.
Refactor template and style.
Update gitignore.