Move submit button out with a single function