MAde changes to accomodate different screen sizes and Orientation of device.