added tab bar functionality