added a edit template and route.