Since you haven't clearly explained what the problem is, we can only offer generic advice.
Use CSS to change the layout; or put both buttons in the same form and use the value of the clicked button to choose what to do on the server; or put both buttons in the same form and use the
formaction
attribute to have one button submit to a different action.
HTML formaction Attribute[
^]