fix generate address button so it doesnt reload the page.