Added swipe to delete and edit button function in the locations view