implemented tab switching
styled TabComponent