Basic structure and functionality for tabs