tidy up the logging- log on error; css tweak.