@Override
 public void tabAdded() {
   if (mTabsAdapter != null) {
     mTabsAdapter.notifyItemInserted(mTabsManager.last());
     mRecyclerView.postDelayed(
         new Runnable() {
           @Override
           public void run() {
             mRecyclerView.smoothScrollToPosition(mTabsAdapter.getItemCount() - 1);
           }
         },
         500);
   }
 }
 @Override
 public void onClick(@NonNull View v) {
   switch (v.getId()) {
     case R.id.tab_header_button:
       mUiController.showCloseDialog(mTabsManager.indexOfCurrentTab());
       break;
     case R.id.new_tab_button:
       mUiController.newTabButtonClicked();
       break;
     case R.id.action_back:
       mUiController.onBackButtonPressed();
       break;
     case R.id.action_forward:
       mUiController.onForwardButtonPressed();
       break;
     case R.id.action_home:
       mUiController.onHomeButtonPressed();
     default:
       break;
   }
 }