complete. add tabbar and refactoring.