Refactoring
Disable toolbuttons following their corresponding action