add resolve pattern to edit route