fixed the edit route and added delete