changed back to button and added alert submit