Some codes in app.py and chagne one template file -> log.html