added ipad adaptive behavior