Disable main toolbar buttons

Adding enable/disable support to the view => main toolbar buttons