component rendering, initialization and invalidation