selection, deleting, arc adding and node adding now works correctly