Now the layout is automatically set based on window size