css and diagram fixes