update tab bar controller logic