Cleaner handling of enable/disable and show/hide.