adds swipe to delete on listView

simplies some code in detailView