refactor buttons settings