Clean some codes, can build a new doc with formid