Added prevent default action on buttons. Worked fine on Chrome but FireFox caused the page to refresh (inheriting the button submit action for the form)