implemented auto fill-in templet manual edit