Added support for different devices.  Layout is different for phones and tablets