use toggle method instead of add/remove and make it method of tabBarFactory