Added detail view and edit function that doesn't work yet