switching anchors to submit buttons for if else state