Added mark functionality to grids