added tab switching to index
added tab switching to index