apply thymeleaf