Working on ipad document click