rewrite flexbox css
improve canvas drawing
fix Diagram.clone method
alter arrow implementation
little fix