New functions for iphone and safari