updating layout stuff