giving components classes