Add draggability to the box
Refactor index