adding changes to tab styling during element addition