fix page refresh on button submission