Be more generic on enabling buttons.