added thymeleaf support