Buttons are correctly enabled/disabled when appropriate