Added check for mobile device, and then added subviews