added edit route and methods