Added support for ipad and iphone