fix view edit repay