Refactor toggle buttons in entry editor according to config.