refactor btn & bar.