delete debuging logs & fix diagram button