added iphone and ipad support