move input text update to function
Merge pull request #131 from iterion/master

Move input text update to function