added private tab switching