add type attribute to button