added function ipad(), for ipad detecting