completed Gesture-implementation for ipad