hooked code into old buttons/textfields