move rebalance function to miru-manage; simplify rebalancing logic; add rebalance ui button with default behavior