You can probably just change the action instead of replacing the whole form here.