fix some bugs, begin to implement the rest API in the user button UI interactive