refactor baseTemplate to template and added filter for UTF-8 in web.xml