edit template and fix captcha error