Updates to layout, phonegap detection.