Tweak layout so that it resizes properly