working version still using buttons in tab bar