working on iPad functionality