add methods for buttons/text box