added styles and draggable function in the grid