finally got swipe completed functionality to work.