added separate method for swipe occurance for calling from other methods