added grid to elements