add credit functionality added. Revert button not working