implemented swipe gesture for sending