grid linking functionality