updated latex and html template