swapped several buttons from submit type to button type.