Abstracted TextField and Button generation

Abstracted TextField and Button generation