Added tab selection based on actions.