adding draggable function
Updated index tests