update edit route in index controller