add tab function and new controller