various css and template fixes