Set button availablity and update tab titles.