implements active tabs