balance added with ajax functionality