updated for supporting for iPad.
update finally.