change button type for problems with browsers