add template and update some file