Got submitting functions working without having to refresh the page.