modified add/edit route