Updated view and added delete function