serving html and logging input