complish the function like tabbar controller , and I will reconstructed the code right now