Make sure the buttons refresh when the project tree is blank