Revert "Revert "add ui updating""

This reverts commit ed6b4cdaa65f3bf613a3fbae50f628157ecf0555.