Fix add credits, add real-time dashboard function