do some layout stuff