update component layout