move tabbar html out into template.