Refactor submit button, can only be clicked once