Made buttons disable when no tabs are open, and enable when opening a tab