Change layout to be more flexible with window sizes.