Added IndexController which control the active tab