Update buttons after mode changed, when already rendered.

Fill inputvalue at template item creation.