Added call on swipe function