added ipad support