Update buttons after mode changed, when already rendered.
Fill inputvalue at template item creation.
Merge pull request #8 from pimatic/master

Update buttons after mode changed, when already rendered.