changes in credit distribution.html and its controller