working on detach box (right click)