Replace standard output by logging
Update html template