Revert "Revert "cost title button handler""

This reverts commit 1c2b18ce12f6a08cae99b203cec74992390a7f29.
cost title button handler improve