add base case in tab selection