Dynamically enable/disable editing controls based on selection.