modify the layout for phone/pad