Attach/Detach array feature

now can attach/detach array, but still some bugs remains, I think there
is something definitly fucked up about graphs and array with swing