fixing swipe delte and panel closeing