encapsulated confirmBox to be easier and more portable to use.
added confirmation for publish/withdraw