Added conditional checks for Android and Windows Phone for control layout