created a new text button using new constructor