implemented interface of the popup menu

the server will return a json object which contained status: succeed on
success and totalearned