set up tab bar and add selected states