Update application template and modify document.