Work over the layout some more and handle resize events