setting type to all buttons for old browsers