now updating gridview by elements