added methods to enable swipe to delete