added support for ipad