added onchange_loan_id() method