refactor buttons UI