updateded for iPad Device