added selectedTab attribute, updated admin views