fixed edit routing issues