update grid element