Modify ipad.html
Refactor