changed the layout for mobile devices