updating component main