added button type to buttons so that ui buttons dont submit the form