Fix edge repainting on mouse release + add buttons for graph manipulation