adding type to button