inserting element into grid