add edit route and template