fixing grid layout stuff