made chsnges to enable copy paste of grid cells