added delete funcitonality and edit route