implemented the textfield history. (not stable yet)