conter and selector working in tabs