trasnfered flashgrid code