add add new account functionality with ajax and update total