changed layout for smaller screens