added enable/disable for control bar