update this to work a ittle better on ipad