logging and html layout