Added support for ipad