move grid to a component