finalizing payment feature

adding datatables + performance fix